<?php
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");

require_once("../configuration.php");

	if(isset($_GET['file']))
	{
		$fileName = basename($_GET['file']);
		header("Content-Disposition: attachment; filename=\"$fileName\"");
		readfile("../" . basename(UPLOAD_DIR) . "/$_GET[file]");
		return;
	}
?>
